﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NoRefsTest.ServerTest
{
	[TestClass]
	public class DalTests
	{
		private static readonly DataManager.MyDal _dal = new DataManager.MyDal();
		
		[TestMethod]
		public void TestGetEntity1()
		{
			Assert.IsNotNull(_dal);

			const int id = 1;
			var entity = _dal.GetEntity1(id);

			Assert.IsNotNull(entity);
			Assert.AreEqual(entity.Id, id);
		}
	}
}
